{extend name='admin@main'}

{block name="content"}

{include file='store@goods/form_style'}

<form onsubmit="return false;" id="GoodsForm" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
<div class="layui-card-body think-box-shadow padding-left-40">
  <div class="layui-form-item">
    <label class="layui-form-label">兼职标题</label>
    <div class="layui-col-xs10" >
      <input name="title" lay-verify="title" style="width:500px;" autocomplete="off" placeholder="请输入标题" class="layui-input" type="text">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">排序</label>
    <div class="layui-col-xs10" >
      <input name="sort"  style="width:500px;" autocomplete="off" placeholder="请输入数值" class="layui-input" type="number">
    </div>
  </div>

  <div class="layui-form-item ">
    <div class="layui-inline">
      <label class="layui-form-label">状态</label>
      <div class="layui-input-block">
        <input name="status" value="1" title="显示" checked="" type="radio">
        <input name="status" value="0" title="不显示" type="radio">
      </div>
    </div>
    
  </div>

  <div class="layui-form-item ">
    <div class="layui-form-item block">
          <span class="label-required-prev color-green">内容</span>
          <textarea name="content"></textarea>
    </div>
  </div>
    
  <div class="layui-form-item ">
      <button class="layui-btn" type="submit">保存</button>
  </div>
</div>
</form>
{/block}

{block name='script'}

<script>
  window.form.render();
  layui.use('laydate', function(){
    var laydate = layui.laydate;
    //常规用法
    laydate.render({
      elem: '#test1'
    });
    laydate.render({
      elem: '#test2'
    });
    
  });

  require(['ckeditor', 'angular'], function () {
     window.createEditor('[name="content"]', {height: 200});
   });
</script>

{/block}